package com.tianji.learning.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.common.domain.dto.PageDTO;
import com.tianji.learning.domain.dto.NoteFormDTO;
import com.tianji.learning.domain.dto.UpdateNoteDTO;
import com.tianji.learning.domain.po.TjNote;
import com.tianji.learning.domain.query.LearningNotePageQuery;
import com.tianji.learning.domain.query.NoteAdminPageQuery;
import com.tianji.learning.domain.vo.AdminNoteVO;
import com.tianji.learning.domain.vo.LearningNotePageVo;
import com.tianji.learning.domain.vo.NoteAdminVo;

import java.io.IOException;

/**
 * <p>
 * 服务类
 * </p>
 *
 */
public interface ITjNoteService extends IService<TjNote> {

    PageDTO<NoteAdminVo> adminPageQuery(NoteAdminPageQuery pageQuery) throws IOException;

    AdminNoteVO getAdminNote(Long id);

    void updateNoteById(Long id, UpdateNoteDTO dto);

    void saveNote(NoteFormDTO dto);

    PageDTO<LearningNotePageVo> pageQuery(LearningNotePageQuery query);

    void deleteNote(Long id);


    void gatherTjNote(Long id);

    void cancelTjNote(Long id);

}
